home *** CD-ROM | disk | FTP | other *** search
- Path: sourcery.han.de!not-for-mail
- Newsgroups: comp.sys.amiga.programmer
- References: <4kad3q$fvg@canopus.cc.umanitoba.ca> <4kbovo$pmp@cville-srv.wam.umd.edu> <13213909@sourcery.han.de> <4kdksb$1ho@pravda.aa.msen.com>
- From: "Olaf Barthel" <olsen@sourcery.han.de>
- Date: Tue, 09 Apr 1996 22:44:14 +0100
- X-NewsReader: IntuiNews 1.3a (7.9.95)
- Subject: Re: Can you mix GadTools & std Intuition Gadgets?
- Message-ID: <13213912@sourcery.han.de>
-
- In Article <4kdksb$1ho@pravda.aa.msen.com>, Chad Randall <crandall@mail.msen.com> wrote:
- > Olaf Barthel (olsen@sourcery.han.de) wrote:
- > : In Article <4kbovo$pmp@cville-srv.wam.umd.edu>, Udo K Schuermann <walrus@wam.umd.edu> wrote:
- > : > In article <4kad3q$fvg@canopus.cc.umanitoba.ca>,
- > : > Kenneth Paulson <umpaul18@cc.umanitoba.ca> wrote:
- > : > >I've read through all of the documentation that I have, and I can't seem to
- > : > >find anything definite. Can you mix GadTools gadgets with standard
- > : > >Intuition Gadgets?
- > : >
- > : > Yes. The easiest way, and probably most compatible in the future, is to
- > : > place non-GadTools gadgets first, and hang the GadTools gadgets off the
- > : > end of that list:
- > : >
- > : > Window.FirstGadget->[stdgad]->[stdgad]->[GTgadgets....]
- > : >
- > : > For best compatibility, make no assumptions about the list of GadTools
- > : > gadgets except that it's a list of gadgets of some sort. I'd say walking
- > : > that list to the end is about the most assumption you can make, but if you
- > : > keep the organization as in the example above, you won't even need to do
- > : > that. Also, do not modify any GadTools gadgets. If you need to make changes
- > : > to a GadTools gadgets, destroy the whole list (of GadTools gadgets) and
- > : > rebuild it (you need not, of course, destroy your own gadgets.)
- > :
- > : Did I miss something? Why not use two AddGList() calls, one with the
- > : gadtools gadgets and one with the BOOPSI gadgets?
- >
- > But only if you add the GadTools Gadgets last, or if you remove the BOOPSI gadgets first.
- >
- > A GadTool gadget may actually consist of several gadgets. A simple scroller, for example,
- > has 2 gadgets. One simple, unselectable one for the bevel image, and a seperate one for
- > the actually prop. As there is no LEGAL way of finding this out, you can
- > only add a GadTool gadget at the end of a GList, then remove the entire sub-glist
- > starting at the pointer given in your first CreateContext() call.
- >
- > You can add multiple gadtools' glists, tho. Just add them, one at a time to the end
- > of the window glist. To remove them, do it in reverse.
-
- Yep, the BOOPSI Gadgets should come first. At least that's backed by evidence: if
- it were not possible to mix BOOPSI and GadTools gadgets, one wouldn't be able to
- get close, depth, zoom and sizing gadgets to work with GadTools controls.
-
- --
- Home: Olaf Barthel, Brabeckstrasse 35, D-30559 Hannover
- Net: olsen@sourcery.han.de
-